package com.edu.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantVodUtils implements InitializingBean {
    @Value("${aliyun.vod.file.regionidc}")
   private String regionid;
    @Value("${aliyun.vod.file.keyidc}")
   private String keyid;
    @Value("${aliyun.vod.file.keysecredc}")
   private String keysecret;


    public static  String REGIN;
    public static  String KEYID;
    public static  String KEYSEC;

    /**
     * 解决@value 冲突问题
     * @throws Exception
     */
    @Override
    public void afterPropertiesSet() throws Exception {
        REGIN=regionid;
        KEYID=keyid;
        KEYSEC=keysecret;

    }
}
